import request from '../utils/request';

export async function list(data,params) {
    return request({
        url: '/photo/'+data.current+'/'+data.size,
        method: 'get',
        headers:{
            'Content-Type': 'application/json',
            'token': params.token 
        }
    });
};

export async function delPhoto(data,params) {
    return request({
        url: '/photo/'+data.id,
        method: 'delete',
        headers:{
            'Content-Type': 'application/json',
            'token': params.token 
        }
    });
};

export async function addPhoto(data,params) {
    return request({
        url: '/photo',
        method: 'post',
        data:data,
        headers:{
            'Content-Type': 'application/json',
            'token': params.token 
        }
    });
};

